@model Adams.Admin.DataTransfer.DailyPrayers.CreateLocation.PageLoad
@{
    Layout = "~/Views/DailyPrayers/_Layout.cshtml";
}
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>
            Location Details</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <form action="" method="post">
        <input type="checkbox" id="IsMasterAssigned" @(Model.IsMasterAssigned ? "checked" : "") style="display:none" />
        <input type="checkbox" id="IsCurrentMaster" @(Model.Location.IsMaster ? "checked" : "") style="display:none" />
            <p id="IsMasterdiv">
                <label>
                    Is Master</label>
                <input type="checkbox" id="IsMaster" @(Model.Location.IsMaster ? "checked" : "") />
                <br />
                <small>will other locations inherit prayer times from this location?</small>
            </p>
            <p id="InheritMasterdiv">
                <label>
                    Inherit from Master</label>
                <input type="checkbox" id="InheritMaster" @(Model.Location.InheritMaster ? "checked" : "") />
                <br />
                <small>inherit prayer times from the master location?</small>
            </p>
            <p>
                <label>
                    Name</label>
                <input class="text-input small-input" type="text" id="Name" value="@Model.Location.Name" />
                <br />
                <small>the name of the Location</small>
            </p>
            <p>
                <label>
                    Street</label>
                <input class="text-input medium-input" type="text" id="Street" value="@Model.Location.Street" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Street 2</label>
                <input class="text-input medium-input" type="text" id="Street2" value="@Model.Location.Street2" />
                <br />
                <small>Suite Number, Apartment Number, etc</small>
            </p>
            <p>
                <label>
                    City</label>
                <input class="text-input medium-input" type="text" id="City" value="@Model.Location.City" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    State</label>
                <input class="text-input small-input" type="text" id="State" value="@Model.Location.State" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    ZipCode</label>
                <input class="text-input small-input" type="text" id="ZipCode" value="@Model.Location.ZipCode" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Latitude</label>
                <input class="text-input small-input" type="text" id="Latitude" value="@Model.Location.Latitude" />
                <input ID="loadgeo" type="button" value="load from address" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Longitude</label>
                <input class="text-input small-input" type="text" id="Longitude" value="@Model.Location.Longitude" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Time Zone</label>
                <select id="TimeZone">
                    <option value="-5" @(Model.Location.TimeZone == -5 ? "selected" : "")>Eastern Standard Time (EST)</option>
                    <option value="-6" @(Model.Location.TimeZone == -6 ? "selected" : "")>Central Standard Time (CST)</option>
                    <option value="-7" @(Model.Location.TimeZone == -7 ? "selected" : "")>Mountain Standard Time (MST)</option>
                    <option value="-8" @(Model.Location.TimeZone == -8 ? "selected" : "")>Pacific Standard Time (PST)</option>
                    <option value="-9" @(Model.Location.TimeZone == -9 ? "selected" : "")>Alaskan Standard Time (AKST)</option>
                    <option value="-10" @(Model.Location.TimeZone == -10 ? "selected" : "")>Hawaii-Aleutian Standard Time (HST)</option>
                </select>
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Display Order</label>
                <input class="text-input small-input" type="text" id="DisplayOrder" value="@Model.Location.DisplayOrder" />
                <br />
                <small></small>
            </p>
            <p>
                <label>
                    Full Details</label>
                <textarea class="text-input textarea wysiwyg" id="LongNote" cols="79" rows="15">@Model.Location.LongNote</textarea>
            </p>
            <p>
                <input class="button" id="submit" type="button" value="Submit" />
            </p>
        <div class="clear">
        </div>
        <!-- End .clear -->
        <input id="id" type="hidden" value="@Model.Location.ID" />
        </form>
    </div>
    <!-- End .content-box-content -->
</div>
<!-- End .content-box -->
@section Scripts {
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAaTxrw2f-OxxrM5-F_Eb9oxT0_0-ZGct7N9bMCD9_jGCGTzUchRRhhOmSyPJclW2psgK55kk2r0_OxA"
        type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("/Scripts/DailyPrayers/createlocation.js")"></script>
}
